/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package reflection;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author anh_yeu_em_nhieu_lam
 */
/*
 * Khởi tạo class mà không cần từ khóa new ^^
 * */
public class ReflectionBasicOne {

    public ReflectionBasicOne() {
            System.out.print("This is from ReflectionBasicOne ^^\n");
    }
    public static void main(String arg[]){
        try {
            
            ReflectionBasicOne test = ReflectionBasicOne.class.newInstance();
            ReflectionBasicOne testtwo = test.getClass().newInstance();
            
        } catch (InstantiationException ex) {
            Logger.getLogger(ReflectionBasicOne.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(ReflectionBasicOne.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
/*
This is from ReflectionBasicOne ^^
This is from ReflectionBasicOne ^^
 * */